Smart nitinol stent implantation